package com.athengzhi.springCloud.entities;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Package: com.athengzhi.springCloud.entities
 * @ClassName: CommonResult
 * @Author: lhz
 * @CreateTime: 2023/4/17 17:35
 * @Description:
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CommonResult<T> {
    private Integer code;
    private String msg;
    private T data;

    //两个参数的构造方法
    public CommonResult(Integer code, String msg) {
        this(code,msg,null);
    }
}
